package org.fengling.readingplatform.novel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.fengling.readingplatform.model.entity.novel.Chapter;
import org.fengling.readingplatform.model.vo.novel.ChapterVo;

import java.util.List;

@Mapper
public interface ChapterMapper {

    // 获得文章的方式
    Chapter getContent(long novelId, long chapterId);

    // 获取目录的方式
    List<ChapterVo> getAllChapter(long novelId);
}
